﻿using Rhino;
using Rhino.Commands;
using System;
using YangTools.Realization;

namespace YangTools
{
    public class BlockEditPlusCommand : Command
    {
        static BlockEditPlusCommand _instance;
        public BlockEditPlusCommand()
        {
            _instance = this;
        }

        public static BlockEditPlusCommand Instance
        {
            get { return _instance; }
        }

        public override string EnglishName
        {
            get { return "BlockEditPlus"; }
        }

        /// <summary>
        /// 增强编辑图块，可以编辑不等比缩放的图块
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="mode"></param>
        /// <returns></returns>
        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            BlockEdit be = new BlockEdit();
            be.BlockEditPlus();

            return Result.Success;
        }
    }
}